﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                print();

            }
            
        }
        public static void print() 
        {
            Console.WriteLine("请选择NPC类型：1、任务 2、商人 3、铁匠");
            int key = int.Parse(Console.ReadLine());

            switch (key)
            {
                case 1:
                    Console.WriteLine("请输入您的选择：1、送信 2、打怪 3、采集");
                    int a = int.Parse(Console.ReadLine());
                    switch (a)
                    {
                        case 1:
                            Task t = new Task("罗密哦", "任务NPC", "送信给朱丽叶。");
                            t.ASD();                            break;
                        case 2:
                            Task1 t1 = new Task1("灰太狼", "任务NPC", "捕捉懒羊羊。");
                            t1.ASD();
                            break;
                        case 3:
                            Task2 t2 = new Task2("小白兔", "任务NPC", "采集十根胡萝卜。");
                            t2.ASD();
                            break;
                    }
                    break;
                case 2:
                    Console.WriteLine("请输入您的选择：1、武器 2、材料 3、食物");
                    int b = int.Parse(Console.ReadLine());
                    switch (b)
                    {
                        case 1:
                            Shop s = new Shop("阿卡丽","商贩NPC","全场二百五一把。");
                            s.ASD();
                            break;
                        case 2:
                            Shop1 s1 = new Shop1("阿卡丽", "商贩NPC", "全场二百五十个。");
                            s1.ASD();
                            break;
                        case 3:
                            Shop2 s2 = new Shop2("阿卡丽", "商贩NPC", "全场二百五一碗。");
                            s2.ASD();
                            break;
                    }
                    break;
                case 3:
                    Console.WriteLine("请输入您的选择：1、修补 2、强化 3、打造");
                    int c = int.Parse(Console.ReadLine());
                    switch (c)
                    {
                        case 1:
                            Iron i = new Iron("奥恩", "铁匠NPC","小锤40，大锤80");
                            i.ASD();
                            break;
                        case 2:
                            Iron1 i1 = new Iron1("奥恩", "铁匠NPC", "小锤400，大锤800");
                            i1.ASD();
                            break;
                        case 3:
                            Iron2 i2 = new Iron2("奥恩", "铁匠NPC", "小锤4000，大锤8000");
                            i2.ASD();
                            break;
                    }
                    break;
                default:
                    break;
            }
        }
    }
}
